/*
 * Copyright (c) 2025 CAX Conversion Project
 */
package com.comac.ins.common.mybatis.helper;

import com.comac.ins.common.core.domain.model.LoginUser;
import com.comac.ins.common.mybatis.core.domain.BaseEntity;

/**
 * @author zhanghongyi
 * @date 2024/8/6 13:16
 * @description BaseEntityHelper
 */
public class BaseEntityHelper {
    public static void fillCreateByAndUpdateBy(BaseEntity baseEntity, LoginUser loginUser){
        baseEntity.setCreateBy(loginUser.getUserId());
        baseEntity.setUpdateBy(loginUser.getUserId());
        baseEntity.setCreateDept(loginUser.getDeptId());
    }
}
